home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / mapioid.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  2.7 KB  |  112 lines

  1. /*
  2.  *  M A P I O I D . H
  3.  *
  4.  *  MAPI OID definition header file
  5.  *
  6.  *  Copyright 1986-1996 Microsoft Corporation. All Rights Reserved.
  7.  */
  8.  
  9. #ifndef _MAPIOID_
  10. #define _MAPIOID_
  11. #pragma option push -b
  12.  
  13.  
  14. /*
  15.  *  MAPI 1.0 Object Identifiers (OID's)
  16.  *
  17.  *  All MAPI 1.0 OIDs are prefixed by the segment
  18.  *
  19.  *      {iso(1) ansi(2) usa(840) microsoft(113556) mapi(3)}
  20.  *
  21.  *  All MAPI 1.0 tags are also include the addistion segment
  22.  *
  23.  *      {tags(10)}
  24.  *
  25.  *  All MAPI 1.0 encodings are also include the addistion segment
  26.  *
  27.  *      {encodeings(11)}
  28.  *
  29.  *  The set of defined tags are as follows
  30.  *
  31.  *   {{mapiprefix} {tags} {tnef(1)}}                        MAPI 1.0 TNEF encapsulation tag
  32.  *
  33.  *   {{mapiprefix} {tags} {ole(3)}}                         MAPI 1.0 OLE prefix
  34.  *   {{mapiprefix} {tags} {ole(3)} {v1(1)}}                 MAPI 1.0 OLE 1.0 prefix
  35.  *   {{mapiprefix} {tags} {ole(3)} {v1(1)} {storage(1)}}    MAPI 1.0 OLE 1.0 OLESTREAM
  36.  *   {{mapiprefix} {tags} {ole(3)} {v2(2)}}                 MAPI 1.0 OLE 2.0 prefix
  37.  *   {{mapiprefix} {tags} {ole(3)} {v2(2)} {storage(1)}}    MAPI 1.0 OLE 2.0 IStorage
  38.  *
  39.  *  The set of defined encodings are as follows
  40.  *
  41.  *   {{mapiprefix} {encodings} {MacBinary(1)}}              MAPI 1.0 MacBinary
  42.  */
  43.  
  44. #define OID_TAG         0x0A
  45. #define OID_ENCODING    0x0B
  46.  
  47. #define DEFINE_OID_1(name, b0, b1) \
  48.     EXTERN_C const BYTE FAR * name
  49.  
  50. #define DEFINE_OID_2(name, b0, b1, b2) \
  51.     EXTERN_C const BYTE FAR * name
  52.  
  53. #define DEFINE_OID_3(name, b0, b1, b2, b3) \
  54.     EXTERN_C const BYTE FAR * name
  55.  
  56. #define DEFINE_OID_4(name, b0, b1, b2, b3, b4) \
  57.     EXTERN_C const BYTE FAR * name
  58.  
  59. #define CB_OID_1        9
  60. #define CB_OID_2        10
  61. #define CB_OID_3        11
  62. #define CB_OID_4        12
  63.  
  64. #ifdef INITOID
  65.  
  66. #include <initoid.h>
  67.  
  68. #endif
  69.  
  70. #ifdef  USES_OID_TNEF
  71. DEFINE_OID_1(OID_TNEF, OID_TAG, 0x01);
  72. #define CB_OID_TNEF CB_OID_1
  73. #endif
  74.  
  75. #ifdef  USES_OID_OLE
  76. DEFINE_OID_1(OID_OLE, OID_TAG, 0x03);
  77. #define CB_OID_OLE CB_OID_1
  78. #endif
  79.  
  80. #ifdef  USES_OID_OLE1
  81. DEFINE_OID_2(OID_OLE1, OID_TAG, 0x03, 0x01);
  82. #define CB_OID_OLE1 CB_OID_2
  83. #endif
  84.  
  85. #ifdef  USES_OID_OLE1_STORAGE
  86. DEFINE_OID_3(OID_OLE1_STORAGE, OID_TAG, 0x03, 0x01, 0x01);
  87. #define CB_OID_OLE1_STORAGE CB_OID_3
  88. #endif
  89.  
  90. #ifdef  USES_OID_OLE2
  91. DEFINE_OID_2(OID_OLE2, OID_TAG, 0x03, 0x02);
  92. #define CB_OID_OLE2 CB_OID_2
  93. #endif
  94.  
  95. #ifdef  USES_OID_OLE2_STORAGE
  96. DEFINE_OID_3(OID_OLE2_STORAGE, OID_TAG, 0x03, 0x02, 0x01);
  97. #define CB_OID_OLE2_STORAGE CB_OID_3
  98. #endif
  99.  
  100. #ifdef  USES_OID_MAC_BINARY
  101. DEFINE_OID_1(OID_MAC_BINARY, OID_ENCODING, 0x01);
  102. #define CB_OID_MAC_BINARY CB_OID_1
  103. #endif
  104.  
  105. #ifdef  USES_OID_MIMETAG
  106. DEFINE_OID_1(OID_MIMETAG, OID_TAG, 0x04);
  107. #define CB_OID_MIMETAG CB_OID_1
  108. #endif
  109.  
  110. #pragma option pop
  111. #endif
  112.